<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %}管理后台{% endblock %}</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-50">
    <div class="max-w-7xl mx-auto px-4 py-6">
        <div class="flex items-center justify-between">
            <h1 class="text-xl font-semibold">管理后台</h1>
            <div class="space-x-3 text-sm">
                <a class="text-gray-600 hover:text-gray-900" href="/admin">仪表盘</a>
                <a href="{{ url_for('admin.customers') }}" class="text-emerald-700">{{ _('客户查询') }}</a>
                <a href="{{ url_for('admin.stats') }}" class="text-emerald-700">{{ _('数据统计') }}</a>
                <a class="text-gray-600 hover:text-gray-900" href="/admin/categories">分类</a>
                <a class="text-gray-600 hover:text-gray-900" href="/admin/products">商品</a>
                <a class="text-gray-600 hover:text-gray-900" href="/admin/banners">轮播图</a>
                <a class="text-rose-600" href="/admin/logout">退出</a>
            </div>
        </div>
        <div class="mt-6">{% block content %}{% endblock %}</div>
    </div>
</body>
</html>